// components/nav-bar/nav-bar.js
const app = getApp()
Component({
  options:{
      multipleSlots:true
  },
  properties: {

    title:{
      type:String,
      value:"导航标题"
    }
  },

  data: {
    statuHeight: 20
  },
  methods: {
    onLeftTop(){
     this.triggerEvent("leftTop")
    }
  },
  lifetimes: {
    attached() {
      this.setData({
        statuHeight: app.globalData.statuHeight
      })
    }
  },
  
})